package com.woniuxy.lab.woniu_lab_boss.service.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@ApiModel("消费记录")
public class OrderDto {
    @ApiModelProperty(value = "ID")
    private Integer id;

    /**
     * 消费单号
     */
    @ApiModelProperty(value = "记录编号", example = "789abc...")
    private String no;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户ID", example = "1")
    private Integer userId;


    @ApiModelProperty(value = "用户昵称", example = "lucas")
    private String nickname;
    /**
     * 购买的靶场ID(VIP服务为-1，终身会员为-2)
     */
    @ApiModelProperty(value = "购买的靶场ID", example = "1")
    private Integer itemId;

    /**
     * 消费内容(CTL/EXPER/VIP/FVIP)
     */
    @ApiModelProperty(value = "消费内容", example = "VIP")
    private String info;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", example = "LocalDateTime")
    private LocalDateTime createTime;

    /**
     * 消费金额
     */
    @ApiModelProperty(value = "消费金额", example = "599.00")
    private BigDecimal money;
}
